package xyz.hujf.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.hujf.product.service.ProductService;
import xyz.hujf.productvo.mapper.ProductMapper;
import xyz.hujf.productvo.model.Product;
import xyz.hujf.productvo.model.ProductExample;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Hujf
 * @title: ProductServiceImpl
 * @date 2021/4/1511:01
 * @description: TODO
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductMapper productMapper;
    @Override
    public List<Product> getAll() {
        return productMapper.selectByExample(new ProductExample());
    }
}
